﻿#define _CRT_SECURE_NO_WARNINGS 1
#include "Queue.h"

void test01()
{
	//初始化
	Queue q;
	QueueInit(&q);

	//入队
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);

	//出队
	///*QueuePop(&q);
	//QueuePop(&q);
	//QueuePop(&q);
	//QueuePop(&q);*/
	//
	//取队首
	///*printf("%d->", QueueFront(&q));
	//QueuePop(&q);
	//printf("%d->", QueueFront(&q));
	//QueuePop(&q);
	//printf("%d->", QueueFront(&q));
	//QueuePop(&q);
	//printf("%d->", QueueFront(&q));*/


	//取队尾
	//printf("%d->", QueueBack(&q));

	//有效数据
	printf("size：%d\n", QueueSize(&q));

}

int main()
{
	test01();
	return 0;
}